package main

import "fmt"

// Author : CSR丶WARRIOR
// Time ： 2020/10/13  21:27
// TOOLS : GoLand
// FILENAME : traversalArray.go
// STATEMENT: 切片的遍历

func main() {
	s := []int{1, 2, 3, 4, 5, 6, 7, 8, 9}
	for i := 0; i < len(s); i++ {
		fmt.Println(s[i])
	}
	for _, v := range s {
		fmt.Println(v)
	}
}
